/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package umled.model;

/**
 *
 * @author ANor
 */
public enum UMLVisible {
    PUBLIC, PROTECTED, PRIVATE, DEFAULT;
    
    /**
     * Returns character representation of visibility
     * @return Character representation of visibility
     */
    @Override
    public String toString(){
        switch( this ){
            case PUBLIC : return "+" ; 
            case PROTECTED : return "#" ;
            case DEFAULT : return "" ;
            case PRIVATE : return "-" ;
        }
        throw new RuntimeException();
    }
    /**
     * Returns string representation of visibility
     * @return String representation of visibility
     */
    public String toString2(){
        switch( this ){
            case PUBLIC : return "public" ; 
            case PROTECTED : return "protected" ;
            case DEFAULT : return "default" ;
            case PRIVATE : return "private" ;
        }
        throw new RuntimeException();
    }
}
